/* ======使用注明=======
 //#import "SEGWinningPublicTopView.h"
 //@property (nonatomic, strong)SEGWinningPublicTopView *varWinningPublicTopView; <#注释#>
 // 控件数据模型创建
 SEGWinningPublicTopViewModel *data = [[SEGWinningPublicTopViewModel alloc]init];
 // 控件内容布局计算
 SEGWinningPublicTopViewLayout *layout = [[SEGWinningPublicTopViewLayout alloc]initWithData:data type:SEGEnumWinningPublicTopViewType_NO];
 // 内容布局填充到视图
 SEGWinningPublicTopView *varWinningPublicTopView = [[SEGWinningPublicTopView alloc]initWithFrame:CGRectZero];
 //varWinningPublicTopView.delegate = self;
 varWinningPublicTopView.left = 0;
 varWinningPublicTopView.top = 0;
 varWinningPublicTopView.width = kScreenWidth;
 varWinningPublicTopView.height = varWinningPublicTopView.layout.totalHeight;
 [varWinningPublicTopView setWithLayout:layout];
 
 */
#import <UIKit/UIKit.h>
#define kWinningPublicTopViewHeight 231     // WinningPublicTopView的高度

typedef NS_ENUM(NSUInteger, SEGEnumWinningPublicTopViewType) {
    SEGEnumWinningPublicTopViewType_NO = 0, /*默认*/
};

@protocol SEGprotocolWinningPublicTopViewDelegate <NSObject>
@optional

-(void)SEGprotocoltitleLabel:(SEGLabel*)sender;

@end

@interface SEGWinningPublicTopViewModel : NSObject
@property (nonatomic, copy) NSString *title; // <#注释#>
@property (nonatomic, copy) NSString *bannerUrlString; // <#注释#>
@end

@interface SEGWinningPublicTopViewLayout : NSObject
@property (nonatomic, assign,readonly) CGFloat totalHeight;//控件总高度
@property (nonatomic, assign,readonly) SEGEnumWinningPublicTopViewType type;//控件类型
@property (nonatomic, strong,readonly)SEGWinningPublicTopViewModel *data;
- (instancetype)initWithData:(SEGWinningPublicTopViewModel *)data type:(SEGEnumWinningPublicTopViewType)type;
-(void)segWinningPublicTopViewLayout;

@property (nonatomic, assign) CGFloat titleLabelHeight;//titleLabel 高度
@property (nonatomic, strong) SEGTextLayout *titleLabelTextLayout;//titleLabel 富文本布局

@end

@interface SEGWinningPublicTopView : UIView
@property (nonatomic, strong,readonly)SEGWinningPublicTopViewLayout *layout;
- (void)setWithLayout:(SEGWinningPublicTopViewLayout *)layout;

@property (nonatomic, strong) UIImageView *bannerImageView; // <#注释#>

@property (nonatomic, strong) SEGLabel *titleLabel; // <#注释#>

@property (nonatomic, assign) id<SEGprotocolWinningPublicTopViewDelegate> delegate;// 代理
@end
